<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>求季度</title>
	</head>

	<body>
		<script>
			var season = prompt("请输入月份：");

			if(season <= 3 && season > 0) {
				alert("第一季度：春季");
			}
			//	else if((season == 4) || (season == 5) || (season = 6))
			else if(season <= 6 && season > 3) {
				alert("第二季度：夏季");
			} else if(season <= 9 && season > 6) {
				alert("第三季度：秋季");
			} else if(season <= 12 && season > 9) {
				alert("第三季度：冬季");
			} else {
				alert("请输入1到12数字");
			}
		</script>
	</body>

</html>